<?php

use yii\db\Migration;

/**
 * Handles adding columns to table `{{%decree}}`.
 */
class m221027_070817_add_own_number_column_to_decree_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->addColumn('{{%decree}}', 'own_number', $this->string(12));
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropColumn('{{%decree}}', 'own_number');
    }
}
